﻿using System.ComponentModel.DataAnnotations;

namespace Tauren.Business.Entity.Input
{
    public class AccoutInfo_Input
    {
        /// <summary>
        /// 主键ID
        /// </summary> 
        public virtual int AutoId { get; set; }

        /// <summary>
        /// 账号
        /// </summary> 
        [Display(Name = "账号"), Required(ErrorMessage = "{0}不能为空!"), StringLength(10, ErrorMessage = "{0}不超过10个字符"), RegularExpression(@"^([a-zA-Z0-9]){1,20}$", ErrorMessage = "请输入英文字符、数字组成的{0}")]
        public virtual string Account { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Display(Name = "密码"), Required(ErrorMessage = "{0}不能为空!"), StringLength(8, ErrorMessage = "{0}不超过8个字符"), RegularExpression(@"^([a-zA-Z0-9]){1,20}$", ErrorMessage = "请输入英文字符、数字组成的{0}")]
        public virtual string Password { get; set; }
        /// <summary>
        /// 显示名称
        /// </summary>
        [Display(Name = "显示名称"), Required(ErrorMessage = "{0}不能为空!"), StringLength(20, ErrorMessage = "{0}不超过20个字符")]
        public virtual string Name { get; set; }

        /// <summary>
        /// 员工基本信息ID
        /// </summary>
        [Display(Name = "员工基本信息ID"), Required(ErrorMessage = "{0}不能为空!")]
        public virtual int EmpId { get; set; }
        /// <summary>
        /// 启用？
        /// </summary>
        public virtual bool Enable { get; set; }
        /// <summary>
        /// 顺序
        /// </summary>
        public virtual double Sequence { get; set; }

        /// <summary>
        /// 语言
        /// </summary>
        public virtual int Language { get; set; }
    }
}
